package cn.usian.demo01_finally;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TestDate {
    public static void main(String[] args) {
        SimpleDateFormat dateFormat =  new SimpleDateFormat("yyyy-MM-dd HH:mm:ss E");
        String s = "2024/06/04 08:56:12 周二";
        Date parse = null;
        try {
            parse = dateFormat.parse(s);
        } catch (ParseException e) {
            //throw new RuntimeException(e);
            e.printStackTrace();
        }
        System.out.println(parse);
        System.out.println("over");
    }
}
